package com.canxi.earn.mapper;

import com.canxi.earn.domain.CxJoke;
import com.canxi.earn.domain.vo.CxJokeVo;
import com.canxi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;

/**
 * 笑话Mapper接口
 *
 * @author ruoyi
 * @date 2024-09-05
 */
@Mapper
public interface CxJokeMapper extends BaseMapperPlus<CxJokeMapper, CxJoke, CxJokeVo> {

    /**
     * @description: TODO 分页查询笑话列表
     * @author: ruoyi
     * @date: 2024-09-05
     * @param:
     * @param: page
     * @param: cxJokeVo
     * @return:
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<Vo>
     **/
    Page<CxJokeVo> queryCxJokeList(Page<?> page, @Param("cxJokeVo") CxJokeVo cxJokeVo);

    /**
     * @description: TODO 查询笑话列表
     * @author: ruoyi
     * @date: 2024-09-05
     * @param:
     * @param: cxJokeVo
     * @return:
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<Vo>
     **/
    List<CxJokeVo> queryCxJokeList(@Param("cxJokeVo") CxJokeVo cxJokeVo);


    /**
     * @description: TODO 根据id查询笑话
     * @author: ruoyi
     * @date: 2024-09-05
     * @param:
     * @return:
     * @return Vo
     **/
    List<CxJokeVo> queryCxJokeByIds(@Param("ids") String ids);


    /**
     * @description: TODO 根据id查询笑话
     * @author: ruoyi
     * @date: 2024-09-05
     * @param:
     * @return:
     * @return Vo
     **/
        CxJokeVo queryCxJokeById(@Param("Id") String id);

    /**
     * 随机一条数据
     * @return
     */

    CxJokeVo queryRandomInfo();
}
